import request from '@/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/bank_info/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
export const listByCustomer = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/bank_info/listByCustomer',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const listMaterialBank = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/bank_info/listMaterialBank',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const listOrderBank = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/bank_info/listOrderBank',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const listBillCheckBank = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/bank_info/listBillCheckBank',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}



export const getDetail = (id) => {
    return request({
        url: '/api/blade-anwise/bank_info/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const bankDetail = (id) => {
    return request({
        url: '/api/blade-anwise/bank_info/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const remove = (ids) => {
  return request({
    url: '/api/blade-anwise/bank_info/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/blade-anwise/bank_info/submit',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/blade-anwise/bank_info/submit',
    method: 'post',
    data: row
  })
}

export const bankSelect = (data) => {
    return request({
        url: '/api/blade-anwise/bank_info/select',
        method: 'get',
        params: data
    })
}

